package net.lainiao.morethread.Chapter2.demo2;

/**
 * Created by Administrator on 2017/2/28.
 */
public class Changkou2 implements Runnable {
    private Yingyuan yingyuan;

    public Changkou2(Yingyuan yingyuan) {
        this.yingyuan = yingyuan;
    }

    @Override
    public void run() {
        yingyuan.sellChang1(1);
        yingyuan.sellChang2(1);
        yingyuan.sellChang1(2);
        yingyuan.sellChang2(2);
        yingyuan.sellChang1(3);
        yingyuan.sellChang2(3);
        yingyuan.sellChang1(4);
        yingyuan.sellChang2(4);
        yingyuan.returnChang1(5);
        yingyuan.returnChang2(5);
    }
}
